/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Entity;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 *
 * @author Cyrax
 */
@Entity
@Table(name = "TimeSet", catalog = "EasyTickets", schema = "dbo")
@NamedQueries({
    @NamedQuery(name = "TimeSet.findAll", query = "SELECT t FROM TimeSet t"),
    @NamedQuery(name = "TimeSet.findByTsID", query = "SELECT t FROM TimeSet t WHERE t.tsID = :tsID"),
    @NamedQuery(name = "TimeSet.findByHoursStart", query = "SELECT t FROM TimeSet t WHERE t.hoursStart = :hoursStart"),
    @NamedQuery(name = "TimeSet.findByHoursEnd", query = "SELECT t FROM TimeSet t WHERE t.hoursEnd = :hoursEnd")})
public class TimeSet implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "TsID", nullable = false)
    private Integer tsID;
    @Basic(optional = false)
    @Column(name = "HoursStart", nullable = false, length = 50)
    private String hoursStart;
    @Basic(optional = false)
    @Column(name = "HoursEnd", nullable = false, length = 50)
    private String hoursEnd;

    public TimeSet() {
    }

    public TimeSet(Integer tsID) {
        this.tsID = tsID;
    }

    public TimeSet(Integer tsID, String hoursStart, String hoursEnd) {
        this.tsID = tsID;
        this.hoursStart = hoursStart;
        this.hoursEnd = hoursEnd;
    }

    public Integer getTsID() {
        return tsID;
    }

    public void setTsID(Integer tsID) {
        this.tsID = tsID;
    }

    public String getHoursStart() {
        return hoursStart;
    }

    public void setHoursStart(String hoursStart) {
        this.hoursStart = hoursStart;
    }

    public String getHoursEnd() {
        return hoursEnd;
    }

    public void setHoursEnd(String hoursEnd) {
        this.hoursEnd = hoursEnd;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (tsID != null ? tsID.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof TimeSet)) {
            return false;
        }
        TimeSet other = (TimeSet) object;
        if ((this.tsID == null && other.tsID != null) || (this.tsID != null && !this.tsID.equals(other.tsID))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "Entity.TimeSet[tsID=" + tsID + "]";
    }

}
